<?php

namespace App\Models\Shop;

use App\Models\BaseModel;

class ShopBrandModel extends BaseModel
{
    protected $table = 'shop_brand';

    protected $primaryKey = 'id';

    public $dateFormat = 'U';

    public function showBrands()
    {
        $brands = ShopBrandModel::where('status',1)->pluck('name','id')->toArray();
        return [0=>'自主品牌']+$brands;
    }

}
